package com.mes.cloud.api.dto.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Author: 郑样平
 * @Description:
 * @Date: 2019/10/10 10:02
 */
@Data
public class SysModuleTreeUpdateRequest implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID", required = true)
    @NotEmpty(message = "主键ID不能为空")
    private String id;

    @ApiModelProperty(value = "编码", required = false)
    private String code;

    @ApiModelProperty(value = "名称", required = true)
    @NotEmpty(message = "名称不能为空")
    private String name;

    @ApiModelProperty(value = "类型 1.数据字典 2.系统参数 3.角色列表", required = false)
    @NotNull(message = "类型不能为空")
    private Integer type;

    @ApiModelProperty(value = "上级id", required = true)
    @NotEmpty(message = "上级id不能为空")
    private String parentId;

    @ApiModelProperty(value = "状态(0：禁用，1：启用)", required = false)
    private String enableFlag;

    @ApiModelProperty(value = "等级", required = true)
    @NotNull(message = "等级不能为空")
    private Integer moduleLevel;

}
